package helper

var IP, PID, UUID, COMMENT string
var Host = "https://apitest-gt.baidu.com"
var GetIP = "/v3/command/getIP"
var GetCommand = "/v3/command/info"
var Report = "/v3/command/report"
var Confirm = "/v3/command/confirm"

var CommandList = map[string]string{
	"start-1": "nohup tcpdump -i gre75 host 118.193.28.18 >> /tmp/watch.log &",
	"start-2": "nohup tcpdump -i eth0 port 12345 >> /tmp/watch.log &",
	"stop":    "stop",
}

func StringInSlice(str string, slice []string) bool {
	for _, s := range slice {
		if s == str {
			return true
		}
	}
	return false
}
